package drds.configuration.web.model.drds_home.table;

import drds.configuration.db.table_mapping.*;
import drds.configuration.web.model.GroupDataSourceId;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

@Table(groupDataSourceId = GroupDataSourceId.DRDS_HOME,//
        tableName = Index.__TABLE_NAME__, //
        primaryKey = Index.ID,//
        checkBaseColumn = TableInfo.TRUE)//
public class Index extends Model {

    public static final String __TABLE_NAME__ = "table_index";
    //公共字段start
    @ColumnName
    public static final String ID = "id";
    @ColumnName
    public static final String ADD_DATE_TIME = "add_date_time";
    @ColumnName
    public static final String ADD_DATE_TIME_LONG = "add_date_time_long";
    @ColumnName
    public static final String ADD_DATE_TIME_TIMESTAMP = "add_date_time_timestamp";
    //*
    @ColumnName
    public static final String UPDATE_DATE_TIME = "update_date_time";
    @ColumnName
    public static final String UPDATE_DATE_TIME_LONG = "update_date_time_long";
    @ColumnName
    public static final String UPDATE_DATE_TIME_TIMESTAMP = "update_date_time_timestamp";
    @ColumnName
    public static final String VERSION = "version";
    @ColumnName
    public static final String TABLE_ID = "table_id";
    @ColumnName
    public static final String TABLE_NAME = "table_name";
    @ColumnName
    public static final String INDEX_NAME = "index_name";
    @ColumnName
    public static final String INDEX_TYPE = "index_type";
    @ColumnName
    public static final String COLUMN_ID = "column_id";
    @ColumnName
    public static final String COLUMN_NAME = "column_name";
    @ColumnName
    public static final String INDEX_INDEX = "index_index";
    @ColumnName
    public static final String INDEX_COUNT = "index_count";
    @ColumnName
    public static final String IS_ACTIVE = "is_active";
    //公共字段end
    @ColumnName
    public static final String IS_DELETE = "is_delete";
    public static Index dao = new Index();
    @Setter
    @Getter
    @Field(withColumnName = ID)
    private Long id;
    @Setter
    @Getter
    @Field(withColumnName = ADD_DATE_TIME)
    private String addDateTime;
    @Setter
    @Getter
    @Field(withColumnName = ADD_DATE_TIME_LONG)
    private Long addDateTimeLong;
    @Setter
    @Getter
    @Field(withColumnName = ADD_DATE_TIME_TIMESTAMP)
    private Timestamp addDateTimeTimestamp;
    @Setter
    @Getter
    @Field(withColumnName = UPDATE_DATE_TIME)
    private String updateDateTime;
    @Setter
    @Getter
    @Field(withColumnName = UPDATE_DATE_TIME_LONG)
    private Long updateDateTimeLong;
    @Setter
    @Getter
    @Field(withColumnName = UPDATE_DATE_TIME_TIMESTAMP)
    private Timestamp updateDateTimeTimestamp;
    @Setter
    @Getter
    @Field(withColumnName = VERSION)
    private Long version;
    @Setter
    @Getter
    @Field(withColumnName = TABLE_ID)
    private Long tableId;
    @Setter
    @Getter
    @Field(withColumnName = TABLE_NAME)
    private String tableName;
    @Setter
    @Getter
    @Field(withColumnName = INDEX_NAME)
    private String indexName;
    @Setter
    @Getter
    @Field(withColumnName = INDEX_TYPE)
    private String indexType;
    @Setter
    @Getter
    @Field(withColumnName = COLUMN_ID)
    private Long columnId;
    @Setter
    @Getter
    @Field(withColumnName = COLUMN_NAME)
    private String columnName;
    @Setter
    @Getter
    @Field(withColumnName = INDEX_INDEX)
    private Integer indexIndex;
    @Setter
    @Getter
    @Field(withColumnName = INDEX_COUNT)
    private Integer indexCount;
    @Setter
    @Getter
    @Field(withColumnName = IS_ACTIVE)
    private Integer isActive;
    @Setter
    @Getter
    @Field(withColumnName = IS_DELETE)
    private Integer isDelete;
}
